package com.digital.smartgrow.service.sysinfo;

import com.baomidou.mybatisplus.extension.service.IService;
import com.digital.smartgrow.dto.datacenter.DictionaryPageDTO;
import com.digital.smartgrow.entity.sysinfo.Dictionary;
import com.digital.smartgrow.vo.dict.DictVo;

/**
 * <p>
 * 字典 服务类
 * </p>
 *
 * @author xiewb
 * @since 2022-04-23
 */
public interface DictionaryService extends IService<Dictionary> {

 Object getListByPage(DictionaryPageDTO dictionaryPageDTO);

    Object getInfo(Integer id);

    Object removeAllById(Integer id);

    Object saveAll(DictVo dict) throws Exception;

    Object select(String dictNumber);

    Object updateAll(DictVo dict);

   /**
    * 根据ID及关键字查询code, 模糊查询
    * @param id  字典ID
    * @param keyword  关键字
    * @return
    */
    String selectBykey(Integer id, String keyword);
}
